﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Paginas_Logado/MasterPageLogado.Master" AutoEventWireup="true" CodeBehind="ClienteMensagens.aspx.cs" Inherits="WEB_MechSysWeb.Paginas_Logado.ClienteMensagens" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMaster" runat="server">
    <div id="divPagina" style="height: 1239px">
        <div id="divTitulo" class="divTituloPerfilDados">
            <asp:Image ID="imgIcone" runat="server" CssClass="imgIconTitulo" Height="25px" ImageUrl="~/Imagens/mail32.png" Width="29px" />
            Mensagens
        </div>
        <asp:UpdatePanel ID="UpdatePanelGeral" runat="server">
            <ContentTemplate>
                <div class="divDadosMensagem">
                    <div id="divLatEsq" class="divLatEsq">
                        <div class="divHeaderMens">
                            Caixa de Entrada
                        </div>
                        <asp:UpdatePanel ID="UpdatePanelgrid" runat="server">
                            <ContentTemplate>
                                <div id="divGridMens" style="height: 295px">
                                    <div class="divHeaderCad">
                                        Agendamentos Realizados
                                    </div>
                                    <div id="divFiltroAgenda">
                                        <asp:Label ID="Label5" runat="server" Font-Size="Medium" ForeColor="Black" Text="Informe a descrição: "></asp:Label>
                                        <asp:TextBox ID="txtPesquisa" runat="server" Width="320px"></asp:TextBox>
                                        <asp:ImageButton ID="imgbtnPesquisar" runat="server" BorderColor="#3F3F3F" BorderStyle="Groove" BorderWidth="2px" Height="22px" ImageUrl="~/Imagens/Find.png" OnClick="imgbtnPesquisar_Click" Width="26px" />
                                    </div>
                                    <br />
                                    <div id="divChk">
                                        <asp:CheckBox ID="chkNaoLidas" runat="server" AutoPostBack="True" Checked="True" ForeColor="Black" Text="Mensagens Não Lidas" />
                                        &nbsp;&nbsp;&nbsp;&nbsp;
                                        <asp:CheckBox ID="chkLidas" runat="server" AutoPostBack="True" Checked="True" ForeColor="Black" Text="Mensagens Lidas" />
                                    </div>
                                    <asp:GridView ID="gridMensagens" runat="server" AutoGenerateColumns="False" AutoGenerateSelectButton="True" 
                                        BackColor="#F3F3F3" BorderColor="#333333" BorderStyle="Groove" BorderWidth="3px" CssClass="gridMens" 
                                        DataKeyNames="MensagemID" Height="51px" OnSelectedIndexChanged="gridMensagens_SelectedIndexChanged">
                                        <AlternatingRowStyle BackColor="#CCCCCC" BorderColor="#333333" BorderStyle="Outset" BorderWidth="3px" ForeColor="Black" />
                                        <Columns>
                                            <asp:BoundField DataField="MensagemID" HeaderText="MensagemID" />
                                            <asp:BoundField DataField="Titulo" HeaderText="Titulo" />
                                            <asp:BoundField DataField="Assunto" HeaderText="Assunto" />
                                            <asp:BoundField DataField="Remetente" HeaderText="Remetente" />
                                            <asp:CheckBoxField DataField="Status" HeaderText="Status" Text="Visualizada" />
                                        </Columns>
                                        <HeaderStyle BackColor="#3F3F3F" ForeColor="White" />
                                        <SelectedRowStyle BackColor="#3F3F3F" ForeColor="White" />
                                    </asp:GridView>
                                </div>
                            </ContentTemplate>
                            <Triggers>
                                <asp:AsyncPostBackTrigger ControlID="chkLidas" EventName="CheckedChanged" />
                                <asp:AsyncPostBackTrigger ControlID="chkNaoLidas" EventName="CheckedChanged" />
                                <asp:AsyncPostBackTrigger ControlID="imgbtnPesquisar" EventName="Click" />
                            </Triggers>
                        </asp:UpdatePanel>
                    </div>
                    <div id="divLatDir" class="divLatDir">
                        <div class="divHeaderMens">
                            Dados da Mensagem
                        </div>
                        <div style="height: 293px">
                            <table class="tableDadosMens">
                                <tr>
                                    <td class="auto-style12">
                                        <asp:Label ID="Label4" runat="server" CssClass="Labels" Text="Título: "></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtTitulo" runat="server" Enabled="false" Width="320px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="auto-style12">
                                        <asp:Label ID="Label1" runat="server" CssClass="Labels" Text="Assunto: "></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtAssunto" runat="server" Enabled="false" Width="320px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="auto-style12">
                                        <asp:Label ID="Label2" runat="server" CssClass="Labels" Text="Texto:"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtTexto" runat="server" Enabled="false" Height="186px" Width="320px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="auto-style12">
                                        <asp:Label ID="Label3" runat="server" CssClass="Labels" Text="Remetente:"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtRemetente" runat="server" Enabled="false" Width="320px"></asp:TextBox>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>
                <div id="divBotoes" class="divBotoesMens">
                    <asp:Button ID="btnCancelar" runat="server" Text="Cancelar" OnClick="btnCancelar_Click" CssClass="botoesMens" />
                    <asp:Button ID="btnExcluir" runat="server" Text="Excluir" OnClick="btnExcluir_Click" CssClass="botoesMens" />
                </div>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnCancelar" EventName="Click" />
                <asp:AsyncPostBackTrigger ControlID="gridMensagens" EventName="SelectedIndexChanged" />
            </Triggers>
        </asp:UpdatePanel>
    </div>
</asp:Content>
